/*
 * author      : 吴中勤 
 * date        : 2018/8/16
 * description : 与BP相关的请求体
 */

package com.deepexi.adapter.sdk.sap.dto.bp.create;

import com.deepexi.adapter.sdk.sap.dto.SapBaseRequest;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

public class SapBPCreateRequestBody extends SapBaseRequest {

    @SerializedName("BUKRS")
    private String shopCode;

    @SerializedName("PARTNER")
    private String partner;

    @SerializedName("Items")
    private List<BPCreateInputVO> BPItems;

    public void addBPItem(BPCreateInputVO item) {
        if (null == BPItems) {
            BPItems = new ArrayList<>(1);
        }
        BPItems.add(item);
    }

    // === setter & getter ===
    public String getShopCode() {
        return shopCode;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getPartner() {
        return partner;
    }

    public void setPartner(String partner) {
        this.partner = partner;
    }

    public List<BPCreateInputVO> getBPItems() {
        return BPItems;
    }

    public void setBPItems(List<BPCreateInputVO> BPItems) {
        this.BPItems = BPItems;
    }
}
